import request from '@/utils/request'

// 查询单条消息信息
export function getMsgRecord(msgRecordId) {
  return request({
    url: '/system/msgRecord/' + msgRecordId,
    method: 'get'
  })
}

// 查询消息列表信息
export function listMsgRecord(query) {
  return request({
    url: '/system/msgRecord/list',
    method: 'get',
    params: query
  })
}

// 修改消息信息状态
export function editBatchMsgRecord(data) {
  return request({
    url: '/system/msgRecord/editBatch',
    method: 'post',
    data: data
  })

}// 修改消息信息状态
export function editMsgRecord(data) {
  return request({
    url: '/system/msgRecord/edit',
    method: 'post',
    data: data
  })
}

// 推送队列并保存消息
export function pushNoticeAndSaveMsg(data) {
  return request({
    url: '/notification/pushNoticeAndSaveMsg',
    method: 'post',
    data: data
  })
}
